<%@page language="java" contentType="text/html; charset=utf-8" %>
<%@page import="btsm.bean.BTSPage,java.sql.*,btsm.bean.sqlBTSWork"%>
<%!ResultSet rs;%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<%
        sqlBTSWork mypage = new sqlBTSWork("geographicalenv", "");
		sqlBTSWork mysea = new sqlBTSWork("geographicalenv", "");
%>
<%
            String jspName = request.getRequestURI();
            jspName = jspName.substring(jspName.lastIndexOf("/") + 1);			
%>
<%String titlename="基站地理环境";%>
<script language="javascript" src="jscheck.js">
</script>
<HTML>
<HEAD>
<TITLE>基站地理环境管理</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<LINK href="Admin_Style.css" type=text/css rel=stylesheet>
</HEAD>
<BODY style="margin:2px; overflow:hidden">
<script>
    <!--
    function tst(obj0,obj1,obj2){
        obj0.style.border="1 "+obj1+" solid";
        obj0.style.background=obj2;
    }
    //-->
	function btnReturn(){
	     document.frmReturn.submit();
	}
</script>
<script>
	function btnRinsertS(){
		document.Jz_myform.seraction.value="serinsertsimple";
		document.Jz_myform.submit();
	}
	function btnModifyU(){
		document.Jz_myform.seraction.value="sermod";
		document.Jz_myform.submit();
	}
</script>
<SCRIPT LANGUAGE="JavaScript">
    <!--
    function textCounter(field, maxlimit) {
        if (field.value.length > maxlimit)
            field.value = field.value.substring(0, maxlimit);
    }
    //-->
</SCRIPT>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  
  <TR>
    <TD><TABLE class=border cellSpacing=1 cellPadding=2 width="100%" align=center border=0>
        <%
		String strbtscode = (String) request.getAttribute("btscode");
        mypage.wheresw = strbtscode;
        ResultSet rsz = mypage.sc();
        while (rsz.next()) {
                    %>
        <FORM name="Jz_myform" action="ser_graph" method="post">
          <input type="hidden" name="noid" size="20" value=<%=rsz.getString(1)%>>
          <!--添加数据表单开始cs.jsp-->
          <TBODY id=Tabs>
            <TR class=tdbg>
              <TD class=tdbg5 height="26">基站编号：</TD>
              <TD height="26"><input type="text" name="T1" size="20" class=text2d value="<%=rsz.getString(1)%>" maxlength="12" onBlur="checkQuote(this.value,this)">
              </TD>
              <TD class=tdbg5 height="26">基站名称：</TD>
              <TD height="26"><input type="text" name="T1" size="20" class=text2d value="<%=rsz.getString(2)%>" maxlength="20" onBlur="checkQuote(this.value,this)">
              </TD>
            </TR>
            <TR class=tdbg>
              <TD class=tdbg5 height="26">基站位置区域：</TD>
              <TD height="26"><select name="T1" size="1" id="T1" style="width: 140; height: 23" width="771">
                  <option selected value="<%=rsz.getString(3)%>"><%=rsz.getString(3)%></option>
                  <%
                        String[] rs1 = mysea.sclist("01");
                        for (int i = 0; i < rs1.length; i++) {
                                        %>
                  <option value="<%=rs1[i]%>"><%=rs1[i]%></option>
                  <%
                        }
                                        %>
                </select>
              </TD>
              <TD class=tdbg5 height="26">基站地形：</TD>
              <TD height="26"><select name="T1" size="1" id="T1" style="width: 140; height: 23" width="771">
                  <option selected value="<%=rsz.getString(4)%>"><%=rsz.getString(4)%></option>
                  <%
                        String[] rs2 = mysea.sclist("02");
                        for (int i = 0; i < rs2.length; i++) {
                                        %>
                  <option value="<%=rs2[i]%>"><%=rs2[i]%></option>
                  <%
                        }
                                        %>
                </select>
              </TD>
            </TR>
            <tr class=tdbg>
              <TD class=tdbg5 height="26">经度：</TD>
              <TD height="26"><input type="text" name="T1" size="20" class=text2d value="<%=rsz.getString(5)%>" maxlength="11" onBlur="chk(this.value,this)">
              </TD>
              <TD class=tdbg5 height="26">纬度：</TD>
              <TD height="26"><input type="text" name="T1" size="20" value="<%=rsz.getString(6)%>" maxlength="11" onBlur="chk(this.value,this)">
              </TD>
            </tr>
            <tr class=tdbg>
              <TD class=tdbg5 height="18">基站搬迁记录：</TD>
              <TD height="18" colspan="3"><input type="text" name="T1" size="60" class=text2d value="<%=rsz.getString(7)%>" maxlength="24" onBlur="checks(this.value,this)">
              </TD>
            </tr>
			<tr class=tdbg>
				<TD class=tdbg5 height="18">基站详细地址：</TD>
				<TD height="18" ><input type="text" name="graphDeatilAddr" size="60" class=text2d value="<%=rsz.getString("graphDeatilAddr")%>" maxlength="24" onBlur="checks(this.value,this)">
				</TD>
				<TD class=tdbg5 height="18">海拨高度(米)：</TD>
				<TD height="18" ><input type="text" name="graphHigh" size="20" class=text2d value="<%=rsz.getString("graphHigh")%>" maxlength="24" onBlur="checks(this.value,this)">
				</TD>
			</tr>
            <tr class=tdbg>
              <TD class=tdbg5 height="18">维护人：</TD>
              <TD height="18"><input type="text" name="T1" size="20" class=text2d value="<%=rsz.getString(8)%>" maxlength="12"></TD>
              <TD class=tdbg5 height="18">所属地区：</TD>
              <TD height="18"><select name="T1" size="1" id="T1" style="width: 140; height: 23" width="771">
                  <option selected value="<%=rsz.getString(9)%>"><%=rsz.getString(9)%></option>
                  <%
                        String[] rs = mysea.scdqxslist();
                        for (int i = 0; i < rs.length; i++) {
                                        %>
                  <option value="<%=rs[i]%>"><%=rs[i]%></option>
                  <%
                        }
                  %>
                </select>
              </TD>
            </tr>
            <TR class=tdbg>
              <TD class=tdbg5 height="18">基站级别</TD>
              <TD height="18"><select name="T1" size="1" id="T1" style="width: 140; height: 23" width="771">
                  <option selected value="<%=rsz.getString(10)%>"><%=rsz.getString(10)%></option>
				  <option value="0">0</option>
				  <option value="1">1</option>
                  <option value="2">2</option>
				  <option value="3">3</option>
				  <option value="4">4</option>
				  <option value="5">5</option>
				  <option value="6">6</option>
				  <option value="7">7</option>
				  <option value="8">8</option>
				  <option value="9">9</option>
	              </select></TD>
              <TD class=tdbg5 height="18">有效工作半径（米）：</TD>
              <TD height="18"><input type="text" name="T1" size="20" class=text2d value="<%=rsz.getString(11)%>" maxlength="11" onBlur="chk(this.value,this)"><input type="hidden" name="T1" value=""></TD>
            </TR>
          
          <TR class=tdbg>
            <TD class=tdbg5 height="19">备注：</TD>
            <TD colspan="3" height="19"><textarea rows="7" name="T1" id="T2" cols="60" class=text2d onPropertyChange="textCounter(T2,64)"><%=rsz.getString(13)%></textarea>
            </TD>
          </TR>
          <TR class=tdbg>
            <TD class=tdbg5 height="51" colspan="4"><p align="center">
                <input type="hidden" name="filesnames" value=<%=jspName%>>
                <input type="hidden" name="seraction" value="sermod">
                <input type="hidden" name="btscode" id="btscode" value="<%=strbtscode%>">
                <input type="button" value="修改保存" name="JzB1" style="width: 72; height: 25" class=tx_button onMouseOver="tst(this,'blue','#ffffff')" onMouseOut="tst(this,'black','#e8e7fe')" onClick="btnModifyU();">
                &nbsp;&nbsp;&nbsp;&nbsp;
                <input type="reset" value="重置" name="JzB2" style="width: 72; height: 25" class=tx_button onMouseOver="tst(this,'blue','#ffffff')" onMouseOut="tst(this,'black','#e8e7fe')">
                &nbsp;&nbsp;&nbsp;&nbsp;
                <input type="button" value="返回" name="JzB4" style="width: 72; height: 25" class=tx_button onMouseOver="tst(this,'blue','#ffffff')" onMouseOut="tst(this,'black','#e8e7fe')" onClick="btnReturn();">
            </TD>
          </TR>
          </TBODY>
          
<%
        }
		mypage.dbConClose();
		mysea.dbConClose();
%>
        </FORM>
      </TABLE>
      <FORM name="frmReturn" action="/btsm/nnlist_graph.jsp" method="post" target="_parent">
      </FORM></TD>
  </TR>
  </TBODY>
</TABLE>
</BODY>
</HTML>
